// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:27

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   tc.java

package com.zelix;

import javax.swing.AbstractButton;
import javax.swing.JList;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.JTextComponent;

// Referenced classes of package com.zelix:
//            h2, jt, bz, cz, 
//            tb

final class tc
    implements ListSelectionListener
{

    private final h2 a;

    tc(h2 h2_1)
    {
        a = h2_1;
    }

    public void valueChanged(ListSelectionEvent listselectionevent)
    {
label0:
        {
            cz cz1;
label1:
            {
                if(h2.b(a))
                    return;
                int i = a.B.getSelectedIndex();
                if(i <= -1)
                    break label0;
                cz1 = (cz)a.B.getSelectedValue();
                if(!cz1.b())
                {
                    a.z.setEnabled(true);
                    a.A.setEnabled(true);
                    if(!tb.b)
                        break label1;
                }
                a.z.setEnabled(false);
                a.A.setEnabled(false);
            }
            String s = (String)cz1.a();
            String s1 = a.d(s).a(a.H == 1);
            a.E.setText(s1);
            a.E.setCaretPosition(0);
        }
    }
}